﻿using System.Web.Mvc;
using Elmah;
using FinancePortal.Business.Infraestructure;

namespace FinancePortal.Web.Controllers
{
    public class ErrorController : Controller
    {
        public ActionResult UnAuthorized()
        {
            return View();
        }

        public void LogJavaScriptError(string message)
        {
            ErrorSignal
                .FromCurrentContext()
                .Raise(new JavaScriptException(message));
        }
    }
}
